#include"Heap.h"

int main()
{
	HPDataType a[] = { 4,6,2,1,5,8,2,9};
	Heap hp;
	HPDataType* pA = a;
	HeapCreate(&hp,pA,8);
	HeapPush(&hp, 3);
	HeapPop(&hp, 1);
	while (!HeapEmpty(&hp))
	{
		printf("%d ", HeapTop(&hp));
		HeapPop(&hp);
	}
	printf("\n");

	return 0;
}